home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / aplic / 2sync / 2SyncSetup.exe / modules / mt / panel / scripts / DefineButton2_38 / BUTTONCONDACTION on(press).as < prev    next >
Encoding:
Text File  |  2002-03-20  |  783 b   |  24 lines

  1. on(press){
  2.    tellTarget("_level50")
  3.    {
  4.       gotoAndStop("off");
  5.    }
  6.    duplicateMovieClip("../popcal template","popcal",eval("../:depth") + 16384);
  7.    setProperty("../popcal", _X, "70");
  8.    setProperty("../popcal", _Y, "20");
  9.    setProperty("../popcal", _visible, "1");
  10.    if("0" < int(start_month) + int(start_year))
  11.    {
  12.       set("../popcal/calendar:thismonth",int(start_month));
  13.       set("../popcal/calendar:thisyear",int(start_year));
  14.    }
  15.    else
  16.    {
  17.       set("../popcal/calendar:thismonth",eval("_level0/data:thismonth"));
  18.       set("../popcal/calendar:thisyear",eval("_level0/data:thisyear"));
  19.    }
  20.    set("../popcal/calendar:target","../../../../main_form:start_");
  21.    set("../popcal/calendar:type","3");
  22.    call("../popcal/calendar:init");
  23. }
  24.